<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Recursive tree</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Recursive_tree"> <link href="./mw/ext.math.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Recursive_tree rootpage-Recursive_tree skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Recursive tree</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1305433154">
/* start https://en.wikipedia.org/ */
.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}
/* end https://en.wikipedia.org/ */
</style>
<p>In <a href="Graph_theory" title="Graph theory">graph theory</a>, a <b>recursive tree</b> (i.e., unordered tree) is a <a href="Graph_labeling" title="Graph labeling">labeled</a>, rooted <a href="Tree_(graph_theory)" title="Tree (graph theory)">tree</a>. A size-<span class="texhtml mvar" style="font-style:italic;">n</span> recursive tree's <a href="Vertex_(graph_theory)" title="Vertex (graph theory)">vertices</a> are labeled by distinct <a href="Positive_integer" class="mw-redirect" title="Positive integer">positive integers</a> <span class="texhtml">1, 2, …, <i>n</i></span>, where the labels are strictly increasing starting at the root labeled 1. Recursive trees are <a href="Planar_graph" title="Planar graph">non-planar</a>, which means that the children of a particular vertex are not ordered; for example, the following two size-3 recursive trees are equivalent: <span class="texhtml"><sub>3</sub>/<sup>1</sup>\<sub>2</sub> = <sub>2</sub>/<sup>1</sup>\<sub>3</sub></span>.
</p><p>Recursive trees also appear in literature under the name <i>Increasing Cayley trees</i>.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Properties">Properties</h2></div>
<p>The number of size-<i>n</i> recursive trees is given by
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle T_{n}=(n-1)!.\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>T</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<mo>=</mo>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo>!</mo>
<mo>.</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle T_{n}=(n-1)!.\,}</annotation>
</semantics>
</math></span><img src="./13c5b835b138d4aa7182ec5ef24713581096d464.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:14.562ex; height:2.843ex;" alt="{\displaystyle T_{n}=(n-1)!.\,}" loading="lazy"></span></dd></dl>
<p>Hence the exponential <a href="Generating_function" title="Generating function">generating function</a> <i>T</i>(<i>z</i>) of the sequence <i>T</i><sub><i>n</i></sub> is given by
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle T(z)=\sum _{n\geq 1}T_{n}{\frac {z^{n}}{n!}}=\log \left({\frac {1}{1-z}}\right).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>T</mi>
<mo stretchy="false">(</mo>
<mi>z</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>≥<!-- ≥ --></mo>
<mn>1</mn>
</mrow>
</munder>
<msub>
<mi>T</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<msup>
<mi>z</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msup>
<mrow>
<mi>n</mi>
<mo>!</mo>
</mrow>
</mfrac>
</mrow>
<mo>=</mo>
<mi>log</mi>
<mo><!-- --></mo>
<mrow>
<mo>(</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mrow>
<mn>1</mn>
<mo>−<!-- − --></mo>
<mi>z</mi>
</mrow>
</mfrac>
</mrow>
<mo>)</mo>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle T(z)=\sum _{n\geq 1}T_{n}{\frac {z^{n}}{n!}}=\log \left({\frac {1}{1-z}}\right).}</annotation>
</semantics>
</math></span><img src="./544984f32b923cbf1307da2859aba6b3cc66cfd8.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:33.161ex; height:6.843ex;" alt="{\displaystyle T(z)=\sum _{n\geq 1}T_{n}{\frac {z^{n}}{n!}}=\log \left({\frac {1}{1-z}}\right).}" loading="lazy"></span></dd></dl>
<p>Combinatorically, a recursive tree can be interpreted as a root followed by an unordered sequence of recursive trees. Let <i>F</i> denote the family of recursive trees. Then
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle F=\circ +{\frac {1}{1!}}\cdot \circ \times F+{\frac {1}{2!}}\cdot \circ \times F*F+{\frac {1}{3!}}\cdot \circ \times F*F*F*\cdots =\circ \times \exp(F),}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>F</mi>
<mo>=</mo>
<mo>∘<!-- ∘ --></mo>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mrow>
<mn>1</mn>
<mo>!</mo>
</mrow>
</mfrac>
</mrow>
<mo>⋅<!-- ⋅ --></mo>
<mo>∘<!-- ∘ --></mo>
<mo>×<!-- × --></mo>
<mi>F</mi>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mrow>
<mn>2</mn>
<mo>!</mo>
</mrow>
</mfrac>
</mrow>
<mo>⋅<!-- ⋅ --></mo>
<mo>∘<!-- ∘ --></mo>
<mo>×<!-- × --></mo>
<mi>F</mi>
<mo>∗<!-- ∗ --></mo>
<mi>F</mi>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mrow>
<mn>3</mn>
<mo>!</mo>
</mrow>
</mfrac>
</mrow>
<mo>⋅<!-- ⋅ --></mo>
<mo>∘<!-- ∘ --></mo>
<mo>×<!-- × --></mo>
<mi>F</mi>
<mo>∗<!-- ∗ --></mo>
<mi>F</mi>
<mo>∗<!-- ∗ --></mo>
<mi>F</mi>
<mo>∗<!-- ∗ --></mo>
<mo>⋯<!-- ⋯ --></mo>
<mo>=</mo>
<mo>∘<!-- ∘ --></mo>
<mo>×<!-- × --></mo>
<mi>exp</mi>
<mo><!-- --></mo>
<mo stretchy="false">(</mo>
<mi>F</mi>
<mo stretchy="false">)</mo>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle F=\circ +{\frac {1}{1!}}\cdot \circ \times F+{\frac {1}{2!}}\cdot \circ \times F*F+{\frac {1}{3!}}\cdot \circ \times F*F*F*\cdots =\circ \times \exp(F),}</annotation>
</semantics>
</math></span><img src="./9f351d0804e68d4c13ad981e98049311ecda77c3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.005ex; width:76.302ex; height:5.343ex;" alt="{\displaystyle F=\circ +{\frac {1}{1!}}\cdot \circ \times F+{\frac {1}{2!}}\cdot \circ \times F*F+{\frac {1}{3!}}\cdot \circ \times F*F*F*\cdots =\circ \times \exp(F),}" loading="lazy"></span></dd></dl>
<p>where <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \circ }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo>∘<!-- ∘ --></mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \circ }</annotation>
</semantics>
</math></span><img src="./99add39d2b681e2de7ff62422c32704a05c7ec31.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: 0.125ex; margin-bottom: -0.297ex; width:1.162ex; height:1.509ex;" alt="{\displaystyle \circ }" loading="lazy"></span> denotes the node labeled by 1, × the <a href="Cartesian_product" title="Cartesian product">Cartesian product</a> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle *}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo>∗<!-- ∗ --></mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle *}</annotation>
</semantics>
</math></span><img src="./8e9972f426d9e07855984f73ee195a21dbc21755.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: 0.079ex; margin-bottom: -0.25ex; width:1.162ex; height:1.509ex;" alt="{\displaystyle *}" loading="lazy"></span> the partition product for labeled objects.
</p><p>By translation of the formal description one obtains the <a href="Differential_equation" title="Differential equation">differential equation</a> for <i>T</i>(<i>z</i>)
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle T'(z)=\exp(T(z)),}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>T</mi>
<mo>′</mo>
</msup>
<mo stretchy="false">(</mo>
<mi>z</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>exp</mi>
<mo><!-- --></mo>
<mo stretchy="false">(</mo>
<mi>T</mi>
<mo stretchy="false">(</mo>
<mi>z</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle T'(z)=\exp(T(z)),}</annotation>
</semantics>
</math></span><img src="./a65b91232fb49875baac83bbcb8cae63a6642a7e.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:18.943ex; height:3.009ex;" alt="{\displaystyle T'(z)=\exp(T(z)),}" loading="lazy"></span></dd></dl>
<p>with <i>T</i>(0) = 0.
</p>
<div class="mw-heading mw-heading2"><h2 id="Bijections">Bijections</h2></div>
<p>There are <a href="Bijection" title="Bijection">bijective</a> correspondences between recursive trees of size <i>n</i> and <a href="Permutation" title="Permutation">permutations</a> of size <i>n</i> − 1.
</p>
<div class="mw-heading mw-heading2"><h2 id="Applications">Applications</h2></div>
<p>Recursive trees can be generated using a simple <a href="Stochastic_process" title="Stochastic process">stochastic process</a>. Such <a href="Random_recursive_tree" title="Random recursive tree">random recursive trees</a> are used as simple models for epidemics.
</p>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<ul><li><i><a href="Analytic_Combinatorics" class="mw-redirect" title="Analytic Combinatorics">Analytic Combinatorics</a></i>, Philippe Flajolet and Robert Sedgewick, Cambridge University Press, 2008.</li>
<li><i>Varieties of Increasing Trees</i>, Francois Bergeron, Philippe Flajolet, and Bruno Salvy. In Proceedings of the 17th Colloquium on Trees in Algebra and Programming, Rennes, France, February 1992. Proceedings published in Lecture Notes in Computer Science vol. 581, J.-C. Raoult Ed., 1992, pp. 24–48.</li>
<li><i>Profile of random trees: correlation and width of random recursive trees and binary search trees</i>, Michael Drmota and Hsien-Kuei Hwang, Adv. Appl. Prob., 37, 1–21, 2005.</li>
<li><i>Profiles of random trees: Limit theorems for random recursive trees and binary search trees</i>, Michael Fuchs, Hsien-Kuei Hwang, Ralph Neininger., Algorithmica, 46, 367–407, 2006.</li></ul></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-04-16" href="https://en.wikipedia.org/wiki/?title=Recursive_tree&oldid=1285922157">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
</body></html>